/*
// 用户行为监控Repository接口 - 已注释
// 如需重新启用，请取消注释

using Lzfy_Refund_Service.Models;

namespace Lzfy_Refund_Service.Repositories
{
    public interface IUserBehaviorRepository
    {
        // 行为日志相关
        Task<long> CreateBehaviorLogAsync(UserBehaviorLog log);
        Task<IEnumerable<UserBehaviorLog>> GetBehaviorLogsBySessionAsync(string sessionId);
        Task<IEnumerable<UserBehaviorLog>> GetBehaviorLogsByUserAsync(string userId, DateTime? startDate = null, DateTime? endDate = null);
        
        // 操作会话相关
        Task<long> CreateOperationSessionAsync(UserOperationSession session);
        Task<UserOperationSession?> GetOperationSessionAsync(string sessionId);
        Task<bool> UpdateOperationSessionAsync(UserOperationSession session);
        Task<IEnumerable<UserOperationSession>> GetUserOperationSessionsAsync(string userId, DateTime startDate, DateTime endDate);
        Task<IEnumerable<UserOperationSession>> GetSuspiciousSessionsAsync(decimal minRiskScore);
        
        // 分析规则相关
        Task<IEnumerable<BehaviorAnalysisRule>> GetActiveRulesAsync();
        Task<decimal> CalculateUserAverageOperationTimeAsync(string userId);
        
        // 统计相关
        Task<UserBehaviorStatistics?> GetUserStatisticsAsync(string userId, DateTime date);
        Task<bool> CreateOrUpdateStatisticsAsync(UserBehaviorStatistics statistics);
    }
}
*/